<clickhouse>
    <storage_configuration>
        <disks>
            <s3>
                <type>s3</type>
                <!-- Use custom S3 endpoint -->
                <endpoint>http://resolver:8080/root/data/</endpoint>
                <access_key_id>minio</access_key_id>
                <secret_access_key>minio123</secret_access_key>
                <!-- ClickHouse starts earlier than custom S3 endpoint. Skip access check to avoid fail on start-up -->
                <skip_access_check>true</skip_access_check>
                <!-- Avoid extra retries to speed up tests -->
                <retry_attempts>0</retry_attempts>
                <s3_use_adaptive_timeouts>0</s3_use_adaptive_timeouts>
                <connect_timeout_ms>20000</connect_timeout_ms>
            </s3>
            <s3_retryable>
                <type>s3</type>
                <!-- Use custom S3 endpoint -->
                <endpoint>http://resolver:8080/root/data/</endpoint>
                <access_key_id>minio</access_key_id>
                <secret_access_key>minio123</secret_access_key>
                <!-- ClickHouse starts earlier than custom S3 endpoint. Skip access check to avoid fail on start-up -->
                <skip_access_check>true</skip_access_check>
                <connect_timeout_ms>20000</connect_timeout_ms>
            </s3_retryable>
            <s3_no_retries>
                <type>s3</type>
                <!-- Use custom S3 endpoint -->
                <endpoint>http://resolver:8080/root/data/</endpoint>
                <access_key_id>minio</access_key_id>
                <secret_access_key>minio123</secret_access_key>
                <!-- ClickHouse starts earlier than custom S3 endpoint. Skip access check to avoid fail on start-up -->
                <skip_access_check>true</skip_access_check>
                <!-- Avoid extra retries to speed up tests -->
                <retry_attempts>1</retry_attempts>
                <s3_use_adaptive_timeouts>0</s3_use_adaptive_timeouts>
                <s3_max_single_read_retries>1</s3_max_single_read_retries>
                <connect_timeout_ms>20000</connect_timeout_ms>
            </s3_no_retries>
            <default/>
        </disks>
        <policies>
            <s3>
                <volumes>
                    <main>
                        <disk>s3</disk>
                    </main>
                </volumes>
            </s3>
            <s3_cold>
                <volumes>
                    <main>
                        <disk>default</disk>
                    </main>
                    <external>
                        <disk>s3</disk>
                    </external>
                </volumes>
            </s3_cold>
            <s3_retryable>
                <volumes>
                    <main>
                        <disk>s3_retryable</disk>
                    </main>
                </volumes>
            </s3_retryable>
            <s3_no_retries>
                <volumes>
                    <main>
                        <disk>s3_no_retries</disk>
                    </main>
                </volumes>
            </s3_no_retries>
        </policies>
    </storage_configuration>

    <allow_remove_stale_moving_parts>true</allow_remove_stale_moving_parts>
</clickhouse>
